//
//  StyleTextField2.m
//  MooreDoll
//
//  Created by 郭景豪 on 2014/12/23.
//  Copyright (c) 2014年 Tank. All rights reserved.
//

#import "StyleTextField2.h"

@implementation StyleTextField2
-(id)initWithCoder:(NSCoder *)aDecoder
{
    self = [super initWithCoder:aDecoder];
    if (self) {
        UIImageView *image=[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"textLeftClearIcon"]];
        self.leftView=image;
        self.leftViewMode = UITextFieldViewModeAlways;
        self.textColor = [UIColor colorWithHexString:@"#373737"];
        self.font = [UIFont fontWithName:@"ArialMT" size:CGRectGetWidth([UIScreen mainScreen].bounds)*0.055];
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
